package cn.tedu.test;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.tedu.test")
public class PetConfig {

    @Bean
    public Dog dog(){
        Dog d=new Dog();
        d.setName("旺财");
        d.setAge(6);
        d.setStrain("二哈");
        return d;
    }

}
